Handles the exception in a window.
Please note, this method will be executed on the UI thread.
the thrown exception.
the window, within which the exception was thrown.